@prefix-row: position-row;
@prefix-org: org-tree;
@prefix-table: org-table;
@prefix-drawer: update-drawer;
@prefix-popover: position-popover;
@prefix-otherCard: update-othercard;
@prefix-updateModal: update-modal; //修改modal 的脚部按钮图标

.overflow() {
  overflow-y: hidden;
  overflow-x: hidden;
}

.displayDirection {
  display: flex;
  flex-direction: column;
}

.@{prefix-row} {
  height: 100%;
  overflow: hidden;
  position: relative;

  .ant-col {
    height: 100%;
    .overflow();
  }
}

.@{prefix-org} {
  background-color: #fff;
  height: 100%;
  .overflow();
  .displayDirection();

  .@{prefix-org}-title {
    padding: 0.5rem 1rem;
  }

  .@{prefix-org}-body {
    flex: auto;
    .overflow();
    .displayDirection();

    &-search {
      padding: 0rem 1rem 0.5rem;
      display: flex;
      align-items: center;
    }

    &-content {
      flex: auto;
      position: relative;
      width: 100%;
      .overflow();

      .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
        color: #717171;
      }

      .ant-tree-node-content-wrapper {
        overflow: hidden;
        padding-right: 5px;
      }
    }
  }
}

.@{prefix-table} {
  width: 100%;
  height: 100%;
  .overflow();
  .displayDirection();
  background-color: #fff;

  &-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  // &-title {
  //   padding: 0.5rem 1rem;
  // }

  &-content {
    flex: auto;
    // padding: 0.75rem;
    .overflow();
    .displayDirection();
  }

  &-opt {
    // padding-right: 1rem;
    display: flex;
    justify-content: flex-end;
  }

  &-list {
    flex: auto;
    .overflow();
  }
}

.hiden-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.@{prefix-drawer} {
  height: 100%;
  .displayDirection();
  .overflow();

  &-header {
    padding: 0.75rem;
  }

  &-content {
    flex: auto;
    .overflow();
  }
}

.update-step-layout {
  justify-content: center;
  // align-items: center;
  width: 100%;
  height: 100%;
}

.@{prefix-popover} {
  // max-width: 15%;
  border-radius: 14px;

  .ant-popover-inner {
    border-radius: 14px;

    .ant-popover-title {
      text-align: center;
      // font-size: 16px;
      font-weight: 600;
      border-bottom: 1px dashed #fff;
    }
  }

  .ant-popover-arrow-content::before {
    background: linear-gradient(to left, rgb(222 222 222) 50%, rgb(222 222 222) 50%) no-repeat -10px -10px;
  }

  p {
    margin-bottom: 5px;
    word-break: break-all;
  }

}

// 其他步骤 card 组件样式
.@{prefix-otherCard} {
  .ant-card-head {
    padding: 0px 10px;
    background-color: #f1f1f1;
    margin-bottom: 1px;

    .ant-card-head-title {
      padding: 8px 0px;
    }
  }

  .ant-card-body {
    padding: 0px;
  }

  .ant-tree .ant-tree-treenode-disabled .ant-tree-node-content-wrapper {
    color: #717171;
    align-items: center;
    overflow: hidden;
  }

  .ant-tree-node-content-wrapper {
    align-items: center;
    overflow: hidden;
    color: #000;
  }

  &-rightFather {
    padding: 5px 10px 0px 10px;
  }

  &-rightChild {
    width: 100%;
    background-color: #409eff0a;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #409eff;
    border: 1px solid rgba(160, 207, 255, 1);
  }

  &-rightChild:hover {
    box-shadow: 0 1px 2.5px 0 rgba(0, 0, 0, 0.18);
  }

  &-rightChildIcon {
    display: flex;
    align-items: center;
  }
}

.@{prefix-updateModal} {
  .ant-modal-footer {
    border-top: 0px;
  }
}

.detailDept {
  :global {
    .ant-descriptions-view {
      border-radius: 0;

      .ant-descriptions-row {
        .ant-descriptions-item-label {
          word-break: keep-all;
          white-space: nowrap;
        }

        .ant-descriptions-item-content {
          word-break: break-all;
        }
      }
    }
  }
}

.detailCard {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 49%);
  grid-gap: 0.5rem;
}

.detailCardChild {
  padding: 5px 10px;
  text-align: center;
  background-color: #409eff0a;
  border-radius: 4px;
  color: #409eff;
  border: 1px solid rgba(160, 207, 255, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}